package fr.uniscol.dao.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import fr.uniscol.model.MEF;

public class MEFRowMapper implements RowMapper<MEF> {

	@Override
	public MEF mapRow(ResultSet rs, int rowNum) throws SQLException {
		
		MEF mef = new MEF();
		mef.setId(rs.getInt("MEFID"));
		mef.setCodeSiecle(rs.getString("ID_SIECLE"));
		mef.setLibelleCourt(rs.getString("LIBELLE_COURT"));
		mef.setLibelleLong(rs.getString("LIBELLE_LONG"));
		
		return mef;
	}
}
